<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// API 分块开发配置路由
//\think\Route::rule([
////    'api/driver.index/index'  => 'api/driver.home/index',
////    'api/driver.index/getMessage'=>'api/driver.home/getMessage',
////    'api/driver.index/getWebPage'  => 'api/driver.home/getWebPage',
////    'api/driver.index/login'  => 'api/driver.login/login',
////    'api/driver.index/logout' => 'api/driver.login/logout',
////    'api/driver.index/changePassword' => 'api/driver.login/changePassword',
////    'api/driver.index/setWithdrawPass' => 'api/driver.account/setWithdrawPass',
//
////    'api/driver.index/addCard'    => 'api/driver.account/addCard',
////    'api/driver.index/cardDetail' => 'api/driver.account/cardDetail',
////    'api/driver.index/editCard'   => 'api/driver.account/editCard',
////    'api/driver.index/delCard'    => 'api/driver.account/delCard',
////    'api/driver.index/cardList'   => 'api/driver.account/cardList',
////    'api/driver.index/addFeedback'=> 'api/driver.account/addFeedback',
////    'api/driver.index/listFeedback' => 'api/driver.account/listFeedback',
////    'api/driver.index/viewFeedback' => 'api/driver.account/viewFeedback',
////    'api/driver.index/getBlance'    => 'api/driver.account/getBlance',
//
////    'api/driver.index/addWithdraw'  => 'api/driver.account/addWithdraw',
////    'api/driver.index/viewWithdraw' => 'api/driver.account/viewWithdraw',
////    'api/driver.index/listWithdraw' => 'api/driver.account/listWithdraw',
////    'api/driver.index/delWithdraw'  => 'api/driver.account/delWithdraw',
////    'api/driver.index/setHeadImg'   => 'api/driver.account/setHeadImg',
//
////    'api/driver.index/addOil'  => 'api/driver.Oil/addOil',
////    'api/driver.index/delOil'  => 'api/driver.Oil/delOil',
////    'api/driver.index/viewOil' => 'api/driver.Oil/viewOil',
////    'api/driver.index/listOil' => 'api/driver.Oil/listOil',
////    'api/driver.index/addBind' => 'api/driver.Push/addBind',
//
////    'api/driver.index/getOrderFee'      => 'api/driver.Order/getOrderFee',
////    'api/driver.index/getTrackByOrder'  => 'api/driver.Order/getTrackByOrder',
////    'api/driver.index/orderDetail'      => 'api/driver.Order/orderDetail',
////    'api/driver.index/orderList'        => 'api/driver.Order/orderList',
////    'api/driver.index/getLeftDistance'  => 'api/driver.Order/getLeftDistance',
//
////    'api/driver.index/getRedisBeidou'   => 'api/driver.Admin/getRedisBeidou',
////    'api/driver.index/setCarState'   => 'api/driver.Admin/setCarState',
//
// ]);

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    'login'	=> '/admin/login',
    '[api/driver.index]' => [
        // 登入
        'login'           => 'api/driver.Login/login',
        'logout'          => 'api/driver.Login/logout',
        'changePassword'  => 'api/driver.Login/changePassword',
        // 主页
        'index'           => 'api/driver.Home/index',
        'getMessage'      => 'api/driver.Home/getMessage',
        'getWebPage'      => 'api/driver.Home/getWebPage',
        // 账户
        'setWithdrawPass' => 'api/driver.Account/setWithdrawPass',
        'addCard'         => 'api/driver.Account/addCard',
        'cardDetail'      => 'api/driver.Account/cardDetail',
        'editCard'        => 'api/driver.Account/editCard',
        'delCard'         => 'api/driver.Account/delCard',
        'cardList'        => 'api/driver.Account/cardList',
        'addFeedback'     => 'api/driver.Account/addFeedback',
        'listFeedback'    => 'api/driver.Account/listFeedback',
        'viewFeedback'    => 'api/driver.Account/viewFeedback',
        'getBlance'       => 'api/driver.Account/getBlance',
        'addWithdraw'     => 'api/driver.Account/addWithdraw',
        'viewWithdraw'    => 'api/driver.Account/viewWithdraw',
        'listWithdraw'    => 'api/driver.Account/listWithdraw',
        'delWithdraw'     => 'api/driver.Account/delWithdraw',
        'setHeadImg'      => 'api/driver.Account/setHeadImg',
        // 加油
        'addOil'          => 'api/driver.Oil/addOil',
        'delOil'          => 'api/driver.Oil/delOil',
        'viewOil'         => 'api/driver.Oil/viewOil',
        'listOil'         => 'api/driver.Oil/listOil',
        // 推送
        'addBind'         => 'api/driver.Push/addBind',
        // 订单
        'getOrderFee'     => 'api/driver.Order/getOrderFee',
        'getTrackByOrder' => 'api/driver.Order/getTrackByOrder',
        'orderDetail'     => 'api/driver.Order/orderDetail',
        'orderList'       => 'api/driver.Order/orderList',
        'getLeftDistance' => 'api/driver.Order/getLeftDistance',
        // 后台
        'getRedisBeidou'  => 'api/driver.Admin/getRedisBeidou',
        'setCarState'     => 'api/driver.Admin/setCarState',
    ],
    '[api/passenger]'=>[
        'getOrderTrack'        => 'api/passenger.Order/getOrderTrack',
        'getDriverGps'         => 'api/passenger.Order/getDriverGps',
        'getOrderDetail'       => 'api/passenger.Order/getOrderDetail',
        'getOrderFee'          => 'api/passenger.Order/getOrderFee',
        'cancelApproval'       => 'api/passenger.Order/cancelApproval',
        'orderApply'           => 'api/passenger.Order/orderApply',
        'order_apply'          => 'api/passenger.Order/orderApply',
        'approval_auth_person' => 'api/passenger.Order/approval_auth_person',
        'wait_send_car'        => 'api/passenger.Order/wait_send_car',
        'cancel_order'         => 'api/passenger.Order/cancel_order',
        'changeApproval'       => 'api/passenger.Order/changeApproval',
        'passenger_opration_order'=>'api/passenger.Order/passenger_opration_order',
        'circleQueryOrder'    =>'api/passenger.Order/circleQueryOrder',
        'upload_head_img'      => 'api/passenger.Account/upload_head_img',
        'passenger_wallet'     => 'api/passenger.Account/passenger_wallet',
        'wallet_recharge'      => 'api/passenger.Account/wallet_recharge',
        'pay_pwd'              => 'api/passenger.Account/pay_pwd',
        'trading_detail'       => 'api/passenger.Account/trading_detail',
        'modifyPassword'       => 'api/passenger.Account/modifyPassword',
        'login'                => 'api/passenger.Login/login',
        'approval_order_number'=>'api/passenger.Home/approval_order_number',
        'change_department_passenger'=>'api/passenger.Index/change_department_passenger',
        'use_car_type'         =>'api/passenger.Index/use_car_type',
        'car_type'             =>'api/passenger.Index/car_type',
        'getCarType'           =>'api/passenger.Index/getCarType',
        'approval_opration'    =>'api/passenger.Index/approval_opration',
        'evaluation_star'      =>'api/passenger.Index/evaluation_star',
        'addBind'              =>'api/passenger.Index/addBind',
        'evaluateDriver'       =>'api/passenger.Index/evaluateDriver',
        'getNewCarType'        =>'api/passenger.Index/getNewCarType',
        'getPayType'           =>'api/passenger.Index/getPayType',
        'getVersion'           =>'api/passenger.Index/getVersion',
        'searchMan'            =>'api/passenger.Index/searchMan',
        'for_order'            =>'api/passenger.Order/listOrder',
        'listOrder'            =>'api/passenger.Order/listOrder',
        'getHidePhone'         =>'api/passenger.Index/getHidePhone',
        'use_car_daily'        =>'api/passenger.Index/use_car_daily',
        'getUserQuote'         =>'api/passenger.Agent/getUserQuote',
        'getLeaderDrivers'     =>'api/passenger.Index/getLeaderDrivers',
        'selectDriverCar'      =>'api/passenger.Index/selectDriverCar',
        'get_table_field'      =>'api/Custom/get_table_field',
        'get_order_field'      =>'api/Custom/get_order_field',
        'getWebPage'           =>'api/passenger.Home/getWebPage',
        'getMessage'           =>'api/passenger.Home/getMessage',
        'getBanner'            =>'api/passenger.Home/getBanner',
        'feedback'             =>'api/passenger.Home/feedback',
        'getUnitDriverCar'     =>'api/passenger.Unit/getUnitDriverCar',
        'unitUseCar'           =>'api/passenger.Unit/unitUseCar',
        'change_part_approval' =>'api/passenger.Order/change_part_approval',
        'order_pay'            =>'api/passenger.Index/order_pay',
        'sureBusPrice'         =>'api/passenger.Order/sureBusPrice',
    ],
    '[adminapi]'=>[
        'getRedisBeidou'=>'adminapi/Beidou/getRedisBeidou'
    ]
];
